package com.nearby.demand.adapter;

import android.view.View;
import android.view.ViewGroup;

import com.nearby.demand.R;
import com.nearby.demand.db.Demand;
import com.nearby.demand.utils.KLog;

import java.util.List;

/**
 * Created by lizhangqu on 2015/6/home_3.
 */
public class AuthorAdapter extends BaseRecyclerViewAdapter<Demand, AuthorAdapter.MyViewHolder> {

    public AuthorAdapter(List<Demand> list) {
        super(list);
    }


    @Override
    protected void bindDataToItemView(MyViewHolder myViewHolder, Demand item) {
        KLog.i(item.getStPid());
    }


    @Override
    public MyViewHolder onCreateViewHolder(ViewGroup viewGroup, int type) {

        return new MyViewHolder(inflateItemView(viewGroup, R.layout.user_profiles));


    }


    public class MyViewHolder extends BaseRecyclerViewAdapter.SparseArrayViewHolder {

        public MyViewHolder(View itemView) {
            super(itemView);

        }


    }

}
